﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RBS.Common
{
 
    public class RBSEnums
    {
        /// <summary>
        /// 统一管理操作枚举
        /// </summary>
        public enum ActionEnum
        {
            /// <summary>
            /// 所有
            /// </summary>
            All,
            /// <summary>
            /// 显示
            /// </summary>
            Show,
            /// <summary>
            /// 查看
            /// </summary>
            View,
            /// <summary>
            /// 添加
            /// </summary>
            Add,
            /// <summary>
            /// 修改
            /// </summary>
            Edit,
            /// <summary>
            /// 删除
            /// </summary>
            Delete,
            /// <summary>
            /// 审核
            /// </summary>
            Audit,
            /// <summary>
            /// 回复
            /// </summary>
            Reply,
            /// <summary>
            /// 确认
            /// </summary>
            Confirm,
            /// <summary>
            /// 取消
            /// </summary>
            Cancel,
            /// <summary>
            /// 作废
            /// </summary>
            Invalid,
            /// <summary>
            /// 生成
            /// </summary>
            Build,
            /// <summary>
            /// 安装
            /// </summary>
            Instal,
            /// <summary>
            /// 卸载
            /// </summary>
            UnLoad,
            /// <summary>
            /// 登录
            /// </summary>
            Login,
            /// <summary>
            /// 备份
            /// </summary>
            Back,
            /// <summary>
            /// 还原
            /// </summary>
            Restore,
            /// <summary>
            /// 替换
            /// </summary>
            Replace
        }

        /// <summary>
        /// 系统导航菜单类别枚举
        /// </summary>
        public enum NavigationEnum
        {
            /// <summary>
            /// 系统后台菜单
            /// </summary>
            System,
            /// <summary>
            /// 会员中心导航
            /// </summary>
            Users,
            /// <summary>
            /// 网站主导航
            /// </summary>
            WebSite,
            /// <summary>
            /// 全部
            /// </summary>
            All  
        }

        /// <summary>
        /// 用户生成码枚举
        /// </summary>
        public enum CodeEnum
        {
            /// <summary>
            /// 注册验证
            /// </summary>
            RegVerify,
            /// <summary>
            /// 邀请注册
            /// </summary>
            Register,
            /// <summary>
            /// 取回密码
            /// </summary>
            Password
        }

        /// <summary>
        /// 金额类型枚举
        /// </summary>
        public enum AmountTypeEnum
        {
            /// <summary>
            /// 系统赠送
            /// </summary>
            SysGive,
            /// <summary>
            /// 在线充值
            /// </summary>
            Recharge,
            /// <summary>
            /// 用户消费
            /// </summary>
            Consumption,
            /// <summary>
            /// 购买商品
            /// </summary>
            BuyGoods,
            /// <summary>
            /// 积分兑换
            /// </summary>
            Convert
        }
        /// <summary>
        /// 优惠券类型枚举
        /// </summary>
        public enum DeedType
        {
            /// <summary>
            /// 送餐
            /// </summary>
            SendFood=1,
            /// <summary>
            /// 消费
            /// </summary>
            Consumption,
            /// <summary>
            /// 广告
            /// </summary>
            Advertit 
        }
        /// <summary>
        /// 优惠券状态
        /// </summary>
        public enum DeedStatus
        {
            /// <summary>
            /// 正常
            /// </summary>
            [EnumDescription("正常")]
            Ok,
            /// <summary>
            /// 作废
            /// </summary>
              [EnumDescription("作废")]
            Obsolete,
            /// <summary>
            /// 审核中
            /// </summary>
           [EnumDescription("审核中")]
            Audit,
            /// <summary>
            /// 已使用
            /// </summary>
             [EnumDescription("已使用")]
            Used,
            /// <summary>
            /// 已赠与
            /// </summary>
           [EnumDescription("已赠与")]
            Gift,
            /// <summary>
            /// 已过期
            /// </summary>
            [EnumDescription("已过期")]
            Expired, 
            /// <summary>
            /// 已过期
            /// </summary>
            [EnumDescription("已锁定")]
            Looked
        }

       /// <summary>
       /// 订单状态
       /// </summary>
       public enum  OrderStatus
       {
            /// <summary>
            /// 下单
            /// </summary>
            [EnumDescription("下单")]
            Single = -1, 
            [EnumDescription("点餐")]
            Meal=1, 
            [EnumDescription("预定成功")]
            Ok, 
            [EnumDescription("订单取消")]
            Canceled, 
            [EnumDescription("就餐")]
            Dining,
            [EnumDescription("待评论")]
            ToComment,
            [EnumDescription("已评论")]
            Comment,
            [EnumDescription("已完成")]
            Done 
       }

       /// <summary>
       /// 座位状态
       /// </summary>
       public enum SeatStatus
       { 
           空闲 = 0,
           //就坐
           开台,
           预定,
           锁定,
            
       }
       /// <summary>
       /// 订单通道
       /// </summary>
       public enum OrderChannel
       {
          /// <summary>
          /// 网站
          /// </summary>
          Web,
         /// <summary>
         /// 手机
         /// </summary>
          Mobile
       }
        /// <summary>
        /// 支付方式
        /// </summary>
       public enum PayType
       {
           /// <summary>
           /// 现金
           /// </summary>
           Cash,
           /// <summary>
           /// 刷卡
           /// </summary>
           Card
       } 
       /// <summary>
       /// 积分类型
       /// </summary>
       public enum IntegraType
       {
           登录注册=1,
           完善资料,
           手机认证,
           酒店赠送,
           酒店消费,
           好友赠送,
           赠送积分
       }

        /// <summary>
       /// 菜单状态  /// 流程  1=>10=>2=>3=>4
        /// </summary>
        public enum CookbookStatus
        {
            取消=-1,
            下单=1,
            烹调,
            完成,
            上菜,
            确定=10 
            //流程  1=>10=>2=>3=>4
        }
    }
    /// <summary>
    /// 枚举注释的自定义属性类
    /// </summary>
    public class EnumDescriptionAttribute : Attribute
    {
        private string m_strDescription;
        public EnumDescriptionAttribute(string strPrinterName)
        {
            m_strDescription = strPrinterName;
        }

        public string Description
        {
            get { return m_strDescription; }
        }
    }
}
